﻿/* Nibiru Studio Engine Version [1062] */
#pragma once
#include <string>

using namespace std;

#define EYE_TAG "7In,"


struct EyeDataBasic
{
    float gazeValid = 0; // 注视点是否有效
    float gazeX = -1; // 注视点X
    float gazeY = -1; // 注视点Y
    float gazeZ = 10; // 注视点Z

    float leftPupilValid = 0; // 左眼瞳孔中心是否有效
    float leftPupilX = -1; // 左眼瞳孔中心X
    float leftPupilY = -1; // 左眼瞳孔中心Y

    float rightPupilValid = -1; // 右眼瞳孔中心是否有效
    float rightPupilX = -1; // 右眼瞳孔中心X
    float rightPupilY = -1; // 右眼瞳孔中心Y

};

struct ServiceResult
{
    int code = 0; // 错误码
    string msg = "";

    // 返回错误信息
    string toString()
    {
        return "code=" + to_string(code) + ", msg=" + msg;
    }

    static ServiceResult success(const string &msg = "")
    {
        ServiceResult serviceResult;
        serviceResult.code = 0;
        serviceResult.msg = msg;
        return serviceResult;
    }

    static ServiceResult failure(int code, string msg)
    {
        ServiceResult serviceResult;
        serviceResult.code = code;
        serviceResult.msg = msg;
        return serviceResult;
    }

};



